﻿using Castle.MicroKernel.SubSystems.Conversion;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Xml.Linq;

namespace AppFramework.DinosaursParkMes.WorkOrder.Dto
{
    public class CodingruleDTO
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 目标表单
        /// </summary>
        public string TargetForm { get; set; }

        /// <summary>
        /// 编码名称
        /// </summary>
        public string CodingName { get; set; }

        /// <summary>
        /// 编号前戳
        /// </summary>
        public string CodingProd { get; set; }

        /// <summary>
        /// 时间规则
        /// </summary>
        public string TimeRule { get; set; }

        /// <summary>
        /// 生成类型
        /// </summary>
        public string GenerateType { get; set; }

        /// <summary>
        /// 初始流水号
        /// </summary>
        public int InitialNumber { get; set; } = 1;

        /// <summary>
        /// 流水号长度
        /// </summary>
        public int InitialLong { get; set; }

        /// <summary>
        /// 步长
        /// </summary>
        public int StepSize { get; set; }
        /// <summary>
        /// 当前编号
        /// </summary>
        public int Current_Number { get; set; }
        /// <summary>
        /// 编码生成规则
        /// </summary>
        public string CodingGenerateRule { get; set; }

        /// <summary>
        /// 编号预览
        /// </summary>
        public string CodingPreview { get; set; }
    }
}
